// 用户信息接口

import { axiosGet, axiosPost } from '../utils/axios'

// 登录
export function login(from) {
    return axiosPost('/admin-api/system/auth/login', from)
}
// 生成验证码
export function captchaImage() {
    return axiosGet('/captchaImage')
}
//检查token
export function checkToken(accessToken) {
    let params = {'token': accessToken}
    return axiosGet('/admin-api/system/auth/checkTokenSimple', {},params)
}
//检查密码
export function checkPassword(accessToken) {
    let options =  {'token': accessToken}
    return axiosGet('/admin-api/system/auth/checkPassword', {},options)
}
